package cn.itsource.ymcc.feignclient;

import cn.itsource.ymcc.domain.CourseUserLearn;
import cn.itsource.ymcc.factory.CourseFallbackFactory;
import cn.itsource.ymcc.factory.CourseMarketFallbackFactory;
import cn.itsource.ymcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "service-course",fallbackFactory = CourseFallbackFactory.class)
public interface CourseFeignClient {

    @RequestMapping(value = "/course/courseforuser/{courseId}/{loginId}",method = RequestMethod.GET)
    public JSONResult getCourseforuser(@PathVariable("courseId")Long courseId,@PathVariable("loginId")Long loginId);


    @RequestMapping(value = "/course/info/{courseids}",method = RequestMethod.GET)
    public JSONResult getOrderDetail(@PathVariable("courseids")String courseIds);

    @RequestMapping(value = "/course/detail/data/{courseId}",method = RequestMethod.GET)
    public JSONResult getDetail(@PathVariable("courseId")Long courseId);
}
